﻿<UserControl xmlns:streetcare="clr-namespace:Spenta.StreetCare.Silverlight.UserControls"  x:Class="Spenta.StreetCare.Silverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:ViewModels="clr-namespace:Spenta.StreetCare.Silverlight.MVVM.ViewModels"
    mc:Ignorable="d">
    <UserControl.Resources>
        <ViewModels:MainPageViewModel x:Key="MainPageViewModel" />
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" DataContext="{StaticResource MainPageViewModel}">
        <streetcare:HeaderUserControl  HorizontalAlignment="Stretch" VerticalAlignment="Top" />
        <streetcare:ReportsMapUserControl Margin="0,50,0,20" />
        <controlsToolkit:Expander  Margin="0,50,0,20" ExpandDirection="Right" HorizontalAlignment="Right" IsExpanded="True" Style="{StaticResource RightExpanderStyle}">
            <controlsToolkit:Expander.Content>
                <streetcare:ToolbarUserControl HorizontalAlignment="Right"/>
            </controlsToolkit:Expander.Content>
        </controlsToolkit:Expander>
        <controlsToolkit:Expander Height="Auto" VerticalAlignment="Bottom" IsExpanded="True" Style="{StaticResource BottomExpanderStyle}">
            <controlsToolkit:Expander.Content>
                <streetcare:FooterUserControl />
            </controlsToolkit:Expander.Content>
        </controlsToolkit:Expander>
        <streetcare:PreLoadUserControl />
    </Grid></UserControl>
